<?php
	include_once('config.php');
	include_once('SystemOneAPI.php');
	$api_service_list = "http://202.92.144.6/api/info/";
	$api = new SystemOneAPI($api_service_list, API_USERNAME, API_PASSWORD);
	
	$result = $api->execute('announcements');
	$data = $result->{'data'};
	$count = count($data);
	
	
	echo "<br/> data: ".$result->data;
	
	//pagmeron ng data magiging array na yan
	//kaya magiging $result->data[0]
	
	echo "<br/> items: ".$result->items;
	$api->close();

?>